package com.baidu.kshpt.service.impl;

import com.baidu.kshpt.mapper.TestMapper;
import com.baidu.kshpt.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Service
public class TestServiceImpl implements TestService {
    @Autowired
    private TestMapper testMapper;

    @Override
    public List<Map<String, Object>> getListTest() {
        List<Map<String, Object>> resultMap = testMapper.getListTest();
        return resultMap;
    }

    @Override
    public void insertTest(int id, String string, String anInt) {
        testMapper.insertTest(id,string,anInt,new Date());
    }
}
